cfile := $(wildcard *.c)
cobjfile := $(patsubst %.c,%.o,$(cfile))

.phony: clean all

all: mywebserver

mywebserver: $(cobjfile)
	gcc $^ -o $@


%.o: %.c
	gcc $< -c -o $@

clean:
	rm *.o
	rm mywebserver